/* part1test.c
 * test the syscall for the lock and condition
 */
#include "utility.h"
char alL1[5] = "lock";
 
int rt1scl1,rt1scl2;
int rt1scc1,rt1scc2;

void T(){
    int result;
    Printf("extra 1:AT1 is going to create a lock\n");
    createLock(alL1, 4);
    Printf("extra 1:AT1 try to acquire a lock that named by RTAT \n");
    acquireLock(alL1, 4);
    Printf("extra 1:AT1 got the lock that named by RTAT \n");
    Printf("extra 1:AT1 gonna to loop until corrupt manually\n");
    releaseLock(alL1, 4);
    Printf("extra 1:AT1 release the lock that named by RTAT \n");
       Printf("extra 1:AT1 is going to delete the lock that named by RTAT \n");
    deleteLock(alL1, 4);
 
}

int main()
{
    T();
 
    Exit(0);
}

